FiveMP 0.1b Stable

Состоялся релиз последней версии FiveMP в ветке 0.1b, далее будет во многом переписан код, разработчики откажутся от ScriptHookV и перейдут на самостоятельное существование. А данная версия выпущена в основном для создателей серверов, чтобы те получили новый функционал и могли продолжить написание своих гейм-модов.
Список новых функций и изменений (на англ.):
New: New Chat UI which accepts hex color as `{ffffff}` and chat supports Cyrillic, Chinese, Japanese, Korean, Thai & Latin
New: In-Game Server Browser, Select a server and click connect. You can also 'Remote' connect to a server.
New: A sort of main menu to go to the 'Servers' list, A quick 'Connect' to the server in your config or 'quit' to quit the game (F5 can toggle this when connected to a server)
Added: [LUA] bool IsPlayerInvincible(int playerid)
Added: [LUA] string GetPlayerModelName(int playerid) //Added this mostly down to the fact GetPlayerModel only returns a int thus if you use SetPlayerModelName theres no way to get that.
Added: [LUA] bool IsPlayerControllable(int playerid)
Added: [LUA] SetTaxiLight(int vehicleid, bool toggle)
Added: [LUA] bool IsTaxiLightOn(int vehicleid)
Added: [LUA] SetPlayerWorld(int playerid, int world) // Default worlds for everything is 0
Added: [LUA] int GetPlayerWorld(int playerid)
Added: [LUA] SetVehicleWorld(int vehicleid, int world)
Added: [LUA] int GetVehicleWorld(int vehicleid)
Added: [LUA] SetObjectWorld(int objectid, int world)
Added: [LUA] int GetObjectWorld(int objectid)
Added: [LUA] SetCheckpointWorld(int checkpointid, int world)
Added: [LUA] int GetCheckpointWorld(int checkpointid)
Added: [LUA] SetPickupWorld(int pickupid, int world)
Added: [LUA] int GetPickupWorld(int pickupid)
Added: [LUA] SetBlipWorld(int blipid, int world)
Added: [LUA] int GetBlipWorld(int blipid)
Added: [LUA] SetPlayerHealthRegenRate(int playerid, float rate)
Added: [LUA] IsPlayerStreamedToPlayer(int playerid, int playerid)
Added: [LUA] IsVehicleStreamedToPlayer(int vehicleid, int playerid)
Added: [LUA] textDraw(int playerid, int id, float x(horizontal position 0-1), float y(vertical position 0-1), string text, optional[float scale (1.0 default), bool alignRight])
Added: [LUA] textDestroy(int playerid, int id)
Added: [LUA] textSetPosition(int playerid, int id, float x, float y)
Added: [LUA] textSetScale(int playerid, int id, float scale)
Added: [LUA] textSetText(int playerid, int id, string text)
Added: [LUA] SetVehicleIndicatorState(int vehicleid, int turnSignal, bool toggle)
Added: [LUA] bool GetVehicleIndicatorState(int vehicleid, int turnSignal)
Added: [LUA] SetVehicleInteriorLightState(int vehicleid, bool toggle)
Added: [LUA] bool GetVehicleInteriorLightState(int vehicleid)
Added: [LUA] callback onkeyup(int playerid, int key) http://cherrytree.at/misc/vk.htm
Added: [LUA] callback onkeydown(int playerid, int key)
Added: [LUA] ShowPlayerNameTagForPlayer(int playerid, int showplayerid, bool toggle)
Added: [LUA] SetPlayerNametagText(int playerid, string text)
Added: [LUA] SetPlayerNametagColor(int playerid, int red, int green, int blue)
Added: [LUA] SetVehicleSirenSound(int vehicleid, bool toggle)
Added: [LUA] int window = windowCreate(float x, float y, float width, float height, bool showCursor, optional[ string title])
Note: With windowCreate width & height is the screen size with 1.0 being the max size of the screen in that direction
but elements you add to the window with a width option will be 1.0 being the max width of the window
Added: [LUA] windowDestroy(int window) //Does not hide it from player that already have it displayed
Added: [LUA] windowShow(int window, int playerid)
Added: [LUA] windowHide(int window, int playerid)
Added: [LUA] windowSameLine(int window)
Added: [LUA] windowNewLine(int window)
Added: [LUA] windowAddText(int window, string text)
Added: [LUA] windowAddButton(int window, float width, string text, optional[ string funtionname, bool closeafter ] ) // if the callback is defined it will return anything the client can change in the order it was added
Added: [LUA] windowAddInputField(int window, float width, optional[ bool password, string title ])
Added: [LUA] windowAddCheckBox(int window, string title)
Added: [LUA] windowSeparator(int window)
Added: [LUA] windowAddCombo(int window, float width, string list, optional[ string title ] )
Added: [LUA] windowAddList(int window, bool SelectableSpanAllColumns, string list, ...[string list, ...]) // if SelectableSpanAllColumns is true it'll only return 1 arg back where
Added: [LUA] windowSetOpacity(int window, float opacity)
Change: [LUA] ConnectToMySQL can now accept a port on param 4 or 5 else default port,
Example: ConnectToMySQL("localhost", "root", 7744); or ConnectToMySQL("localhost", "root", "nicepassword", "dbname", 7744);
Change: [LUA] CreateTimer no longer has a arglist param but accepts args directly,
Example: CreateTimer("mytimer", 1000) or ("mytimer", 1000, "help") or ("mytimer", 1000, 1337, 0.5, "this is some text")
Change: Timers no longer limited too 100.
Change: Timers accept tables now
Removed: Money render removed, now up to the server to render it for the player using drawtext.
Fix: Towtruck towed vehicle correctly synced.
Fix: If a player hooks a vehicle when in a cargobob its not assigned and syned properly. (No hook Sync)
Fix: Trailers are now attached/synced properly.
Fix: The color set when creating a vehicle not being synced correctly when streamed in.
Fix: If a callback was not defined it would reach the error checking and print errors.
Fixes in the Majority of the Player Functions & coverted them over to c++ ready for the API
Fix: Vehicle headlights are now properly synced.
Fix: Streamer now drops players that disconnected from all stream pools
Fix: Launcher updater should now fetch the updated files correctly.
Fix: Some MySQL issues
Fix: Vehicle weapons being removed
Fix: Not beign able to reload in a vehicle
Fix: Player Respawning
Fix: Special Peds no longer cause havok around Los Santos
Fix: A vehicles livery is properly synced.
Fix: Player components, props, head blend & overlay and features on model change are reset
Fix: SetGroundSnow in OnGamemodeInit crash
Fix: Changing the Checkpoint height is properly updated.
Fix: Changing a players model while they are in a vehicle caused the game engine seat ids to become messed up for that player.
Fix: Changing a players model while they are in a vehicle no longer ejects them out
Fix: Engine state not being forced of on heli's and bikes.
Fix: Kicking a player no longer triggers OnPlayerDisconnect twice.
Fix: Invalid vehicle id's in vehicle functions should no longer cause a crash.
Fix: Local Player model invis issue on some models
Fix: Setting a players position now loads the world at that position befor moving them there;
Fix: Print function override correctly reads and prints multiple args.
Fix: Checkpoint trigger radius being bigger than the checkpoint itself
Fix: OnPlayerEnteringVehicle returning -1 for drive when it should have been 0.
Fix: Doors now should be unlocked although bare in mind some interiors are fake at first until you unload the fake one and load the true one. If you do however find a door thats locked and you have the ipls for it loaded screen shot it and not down the cord and post it on the forums.
Fix: Checkpoint triggers are now cylindrical rather than spherical
Fix: OnPlayerDeath should now only be trigegred once
Fixed a few crashes that were reported with roughtly what was causing them.
updated the main.lua with /veh is now a gui window and a new /pm command as examples for windows
скачать dle 10.4фильмы бесплатно
New: In-Game Server Browser, Select a server and click connect. You can also 'Remote' connect to a server.
New: A sort of main menu to go to the 'Servers' list, A quick 'Connect' to the server in your config or 'quit' to quit the game (F5 can toggle this when connected to a server)
Added: [LUA] bool IsPlayerInvincible(int playerid)
Added: [LUA] string GetPlayerModelName(int playerid) //Added this mostly down to the fact GetPlayerModel only returns a int thus if you use SetPlayerModelName theres no way to get that.
Added: [LUA] bool IsPlayerControllable(int playerid)
Added: [LUA] SetTaxiLight(int vehicleid, bool toggle)
Added: [LUA] bool IsTaxiLightOn(int vehicleid)
Added: [LUA] SetPlayerWorld(int playerid, int world) // Default worlds for everything is 0
Added: [LUA] int GetPlayerWorld(int playerid)
Added: [LUA] SetVehicleWorld(int vehicleid, int world)
Added: [LUA] int GetVehicleWorld(int vehicleid)
Added: [LUA] SetObjectWorld(int objectid, int world)
Added: [LUA] int GetObjectWorld(int objectid)
Added: [LUA] SetCheckpointWorld(int checkpointid, int world)
Added: [LUA] int GetCheckpointWorld(int checkpointid)
Added: [LUA] SetPickupWorld(int pickupid, int world)
Added: [LUA] int GetPickupWorld(int pickupid)
Added: [LUA] SetBlipWorld(int blipid, int world)
Added: [LUA] int GetBlipWorld(int blipid)
Added: [LUA] SetPlayerHealthRegenRate(int playerid, float rate)
Added: [LUA] IsPlayerStreamedToPlayer(int playerid, int playerid)
Added: [LUA] IsVehicleStreamedToPlayer(int vehicleid, int playerid)
Added: [LUA] textDraw(int playerid, int id, float x(horizontal position 0-1), float y(vertical position 0-1), string text, optional[float scale (1.0 default), bool alignRight])
Added: [LUA] textDestroy(int playerid, int id)
Added: [LUA] textSetPosition(int playerid, int id, float x, float y)
Added: [LUA] textSetScale(int playerid, int id, float scale)
Added: [LUA] textSetText(int playerid, int id, string text)
Added: [LUA] SetVehicleIndicatorState(int vehicleid, int turnSignal, bool toggle)
Added: [LUA] bool GetVehicleIndicatorState(int vehicleid, int turnSignal)
Added: [LUA] SetVehicleInteriorLightState(int vehicleid, bool toggle)
Added: [LUA] bool GetVehicleInteriorLightState(int vehicleid)
Added: [LUA] callback onkeyup(int playerid, int key) http://cherrytree.at/misc/vk.htm
Added: [LUA] callback onkeydown(int playerid, int key)
Added: [LUA] ShowPlayerNameTagForPlayer(int playerid, int showplayerid, bool toggle)
Added: [LUA] SetPlayerNametagText(int playerid, string text)
Added: [LUA] SetPlayerNametagColor(int playerid, int red, int green, int blue)
Added: [LUA] SetVehicleSirenSound(int vehicleid, bool toggle)
Added: [LUA] int window = windowCreate(float x, float y, float width, float height, bool showCursor, optional[ string title])
Note: With windowCreate width & height is the screen size with 1.0 being the max size of the screen in that direction
but elements you add to the window with a width option will be 1.0 being the max width of the window
Added: [LUA] windowDestroy(int window) //Does not hide it from player that already have it displayed
Added: [LUA] windowShow(int window, int playerid)
Added: [LUA] windowHide(int window, int playerid)
Added: [LUA] windowSameLine(int window)
Added: [LUA] windowNewLine(int window)
Added: [LUA] windowAddText(int window, string text)
Added: [LUA] windowAddButton(int window, float width, string text, optional[ string funtionname, bool closeafter ] ) // if the callback is defined it will return anything the client can change in the order it was added
Added: [LUA] windowAddInputField(int window, float width, optional[ bool password, string title ])
Added: [LUA] windowAddCheckBox(int window, string title)
Added: [LUA] windowSeparator(int window)
Added: [LUA] windowAddCombo(int window, float width, string list, optional[ string title ] )
Added: [LUA] windowAddList(int window, bool SelectableSpanAllColumns, string list, ...[string list, ...]) // if SelectableSpanAllColumns is true it'll only return 1 arg back where
Added: [LUA] windowSetOpacity(int window, float opacity)
Change: [LUA] ConnectToMySQL can now accept a port on param 4 or 5 else default port,
Example: ConnectToMySQL("localhost", "root", 7744); or ConnectToMySQL("localhost", "root", "nicepassword", "dbname", 7744);
Change: [LUA] CreateTimer no longer has a arglist param but accepts args directly,
Example: CreateTimer("mytimer", 1000) or ("mytimer", 1000, "help") or ("mytimer", 1000, 1337, 0.5, "this is some text")
Change: Timers no longer limited too 100.
Change: Timers accept tables now
Removed: Money render removed, now up to the server to render it for the player using drawtext.
Fix: Towtruck towed vehicle correctly synced.
Fix: If a player hooks a vehicle when in a cargobob its not assigned and syned properly. (No hook Sync)
Fix: Trailers are now attached/synced properly.
Fix: The color set when creating a vehicle not being synced correctly when streamed in.
Fix: If a callback was not defined it would reach the error checking and print errors.
Fixes in the Majority of the Player Functions & coverted them over to c++ ready for the API
Fix: Vehicle headlights are now properly synced.
Fix: Streamer now drops players that disconnected from all stream pools
Fix: Launcher updater should now fetch the updated files correctly.
Fix: Some MySQL issues
Fix: Vehicle weapons being removed
Fix: Not beign able to reload in a vehicle
Fix: Player Respawning
Fix: Special Peds no longer cause havok around Los Santos
Fix: A vehicles livery is properly synced.
Fix: Player components, props, head blend & overlay and features on model change are reset
Fix: SetGroundSnow in OnGamemodeInit crash
Fix: Changing the Checkpoint height is properly updated.
Fix: Changing a players model while they are in a vehicle caused the game engine seat ids to become messed up for that player.
Fix: Changing a players model while they are in a vehicle no longer ejects them out
Fix: Engine state not being forced of on heli's and bikes.
Fix: Kicking a player no longer triggers OnPlayerDisconnect twice.
Fix: Invalid vehicle id's in vehicle functions should no longer cause a crash.
Fix: Local Player model invis issue on some models
Fix: Setting a players position now loads the world at that position befor moving them there;
Fix: Print function override correctly reads and prints multiple args.
Fix: Checkpoint trigger radius being bigger than the checkpoint itself
Fix: OnPlayerEnteringVehicle returning -1 for drive when it should have been 0.
Fix: Doors now should be unlocked although bare in mind some interiors are fake at first until you unload the fake one and load the true one. If you do however find a door thats locked and you have the ipls for it loaded screen shot it and not down the cord and post it on the forums.
Fix: Checkpoint triggers are now cylindrical rather than spherical
Fix: OnPlayerDeath should now only be trigegred once
Fixed a few crashes that were reported with roughtly what was causing them.
updated the main.lua with /veh is now a gui window and a new /pm command as examples for windows
Скачать:

15964 25.12.16
Информация! Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.