-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
Then change this: dataToFindPlayersJob = "Occupation" to: dataToFindPlayersJob = "gang"
-
Post the part where you create the object.
-
You could create an account or use "Console" one, then save the peak as account data.
-
You don't have to change that, you have to change the script which compares the element data to team.
-
local state = true outputChatBox ( "Press ~[F2]~ to Show/Hide vehicles.", 0, 166, 255, true ) bindKey ( "F2", "down", function ( ) state = ( not state ) if ( state ) then for _, player in ipairs ( getElementsByType ( "player" ) ) do if ( player ~= localPlayer ) then local vehicle = getPedOccupiedVehicle ( player ) if ( vehicle ) then setElementDimension ( vehicle, 0 ) setElementDimension ( player, 0 ) end end end outputChatBox ( "[iNFO] the vehicles are visible now.", 166, 255, 6 ) else for _, player in ipairs ( getElementsByType ( "player" ) ) do if ( player ~= localPlayer ) then local vehicle = getPedOccupiedVehicle ( player ) if ( vehicle ) then setElementDimension ( vehicle, 1000 ) setElementDimension ( player, 1000 ) end end end outputChatBox ( "[iNFO] the vehicles are invisible now.", 255, 100, 0 ) end end )
-
Try making your script client side.
-
What do you mean by that?
-
local state = true outputChatBox ( "Press ~[F2]~ to Show/Hide vehicles.", 0, 166, 255, true ) bindKey ( "F2", "down", function ( ) state = ( not state ) local pVehicle = getPedOccupiedVehicle ( localPlayer ) if ( state ) then for _, vehicle in ipairs ( getElementsByType ( "vehicle" ) ) do if ( vehicle ~= pVehicle ) then setElementDimension ( vehicle, 0 ) end end outputChatBox ( "[iNFO] the vehicles are visible now.", 166, 255, 6 ) else for _, vehicle in ipairs ( getElementsByType ( "vehicle" ) ) do if ( vehicle ~= pVehicle ) then setElementDimension ( vehicle, 1000 ) end end outputChatBox ( "[iNFO] the vehicles are invisible now.", 255, 100, 0 ) end end )
-
You don't have to create the font, guieditor will do it for you, you just set the font of your label to a custom one selected from that list.
-
By add fonts you mean create your own fonts? if so, you can set a custom font with guieditor if you have one on a resource.
-
I don't see anything that could cause to give you double ammo.
-
Is that the code your posted first?
-
Oh, I didn't read correctly your last script, it doesn't load on login, nor saves on quit, is just for when they die, it shouldn't double ammo.
-
local accName = getAccountName ( getPlayerAccount ( player ) ) That's wrong, your player argument is: "playerSource".
-
local camTable = { { 1262, -1154, 96,1190, -1195, 58 }, --cs,cy,cz,cpx,cpy,cpz { 512.2, -1263.57, 32.53,542.16, -1287.07, 17.24 } } local cameras = { } function firstSlider ( ) cameras [ source ] = 0 setTimer ( function ( thePlayer ) cameras [ thePlayer ] = ( cameras [ thePlayer ] + 1 ) setCameraMatrix ( thePlayer, unpack ( camTable [ cameras [ thePlayer ] ] ) ) fadeCamera ( thePlayer, true, 1 ) end, 1000, 2, source ) end addEventHandler ( "onPlayerLogin", getRootElement(), firstSlider ) Try it.
-
Well, there you got the reason of why you got double ammo, you got two weapon save systems.
-
Lo que tenes que hacer es lo siguiente: al iniciar el recurso, usar triggerServerEvent, ahi te fijas si estan en algun grupo de esos, si lo estan, entonces envias otro evento al cliente para remplazar los skins usando triggerClientEvent.
-
Queres que se remplazen skins y autos solo para algunos grupos de ACL?
-
It doesn't "freeze", it just returns the same random camera twice.
-
local camTable = { { 1262, -1154, 96,1190, -1195, 58 }, --cs,cy,cz,cpx,cpy,cpz { 512.2, -1263.57, 32.53,542.16, -1287.07, 17.24 } } function firstSlider ( ) setTimer ( function ( thePlayer ) setCameraMatrix ( thePlayer, unpack ( camTable [ math.random ( #camTable ) ] ) ) fadeCamera ( thePlayer, true, 1 ) end, 1000, 2, source ) end addEventHandler ( "onPlayerLogin", getRootElement(), firstSlider )
-
Que estas intentando hacer exactamente?
