Msaravia
-
Posts
2 -
Joined
-
Last visited
Posts posted by Msaravia
-
-
Hello, I need to make a code so that only those who are faction get on their vehicles, and those who are not do not get on, I do not know much about script and I need helpaddCommandHandler( "setvehiclefaction",function( player, commandName, other, faction )local faction = tonumber( faction )if other and faction and ( faction == 0 or exports.factions:getFactionName( faction ) ) thenlocal other, name = exports.players:getFromName( player, other )if other thenlocal vehicle = getPedOccupiedVehicle( other )if vehicle thenlocal data = vehicles[ vehicle ]if data thenif data.vehicleID > 0 thenif data.characterID thenif exports.sql:query_free( "UPDATE vehicles SET characterID = " .. -faction .. " WHERE vehicleID = " .. data.vehicleID ) thendata.characterID = -factionoutputChatBox( "El " .. getVehicleName( vehicle ) .. " de "..name.." ahora pertenece a " .. ( faction == 0 and "ninguna faccion" or exports.factions:getFactionName( faction ) ) .. ".", player, 0, 255, 153 )elseoutputChatBox( "MySQL Query failed.", player, 255, 0, 0 )endendendelseoutputChatBox( "Vehicle Error.", player, 255, 0, 0 )endelseoutputChatBox( name .. " isn't driving a vehicle.", player, 255, 0, 0 )endendelseoutputChatBox( "Syntax: /" .. commandName .. " [player] [faction or 0 for no faction]", player, 255, 255, 255 )endend,true)
cant start server
in Linux-Server
Posted
Hello i have this problem, and don't start my server.
libncursesw.so.5: cannot open shared object file: No such file or directory ERROR: Could not load ./x64/core.so * Check installed data files. Press enter to continue...