-
Posts
4,961 -
Joined
-
Last visited
Everything posted by Jaysds1
-
try this: addEventHandler("onVehicleStartEnter",getRootElement(), function(player) local account = getPlayerAccount(player) local accountName = getAccountName(account) if not isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) then if ( getControlState(player,"vehicle_fire") == true) then setControlState(player,"vehicle_fire",false) end if ( getControlState(player,"vehicle_secondary_fire") == true) then setControlState(player,"vehicle_secondary_fire", false) end end)
-
ohhhh, ok here: function(player) if (getPlayerAmmoInClip(player) == 0) then giveWeapon(player,getPedWeapon(player,current)) end end
-
it's just like the isCursorShowing(showCursor()). But I'll change it: addEventHandler("onTrailerAttach",getRootElement(), function() if ( not wasEventCancelled() ) then cancelEvent() end)
-
addEventHandler("onResourceStart",getRootElement(), function() local vehicles = getElementsByType ( "vehicle" ) -- Return all the vehicles in a table for k, vehicle in ipairs ( vehicles ) do -- For every vehicle do the following... resetVehicleIdleTime ( vehicle ) -- Reset the vehicle's idle time setTimer(function() blowVehicle(vehicle ) end,30000,0) end end)
-
It's suppose to work Server-side... Try this: addEventHandler("onTrailerAttach",getRootElement(), function() wasEventCancelled(canelEvent()) end)
-
Put this script in Client-side or Server-Side. It'll work both sides. EDIT: I never knew JR10.
-
addCommandHandler is the same, you can't change it to a different definition, so you have to change line 2. Try this: -- addCommandHandler supporting arrays as command names (multiple commands with the same function) addCommandHandler = function( commandName, fn, restricted, caseSensitive ) -- add the default command handlers if type( commandName ) ~= "table" then commandName = { commandName } end for key, value in ipairs( commandName ) do if key == 1 then addCommandHandler( value, fn, restricted, caseSensitive ) else addCommandHandler( value, function( player, ... ) -- check if he has permissions to execute the command, default is not restricted (aka if the command is restricted - will default to no permission; otherwise okay) if hasObjectPermissionTo( player, "command." .. commandName[ 1 ], not restricted ) then fn( player, ... ) end end ) end end end
-
I suggest to show the scripts... And moderator, move this to scripting forum.
-
I rather bump your old topic... What's the point of making another topic and the old version is just going to just sit there... Bump your old topic...
-
ok, that's better... function(player) if (getPlayerAmmoInClip(player) == 0) then takeWeapon(player,getPedWeapon(player,current)) end end
-
there's no such thing as "getWeaponAmmo". there's only giveWeaponAmmo or setWeaponAmmo.
-
I meant setCameraTarget serverside... the player and the element which is the object...
-
Actually, Why didn't they just ban or charge the person running the site... there's more than 100,000 torrents of free illegal software... The company showed know and try to do something like serial codes... just like Adobe
-
ya, it's possible to fade a camera at a object... but first use setCameraTarget...
-
ok, sometimes a script makes the player Timed Out, for example "sx_resourcemanager" when started it makes the person either time out or show a warning saying Network Problem(s)...
-
ya, I got Fraps off of Kickass Torrents
-
ohhh, ok, NVM
-
I'm planning to make a movie for my server and I want to know what's the best movie software... I have Windows XP and my Windows Movie Maker sucks right now... Do anyone know a good program?
-
Thanks for editing it for me... i really don't know what I'm doing rite now...
-
I never knew... My friend showed me it this week...
-
Please dont bump... What are you talking about... I'm just saying that this is one of the best resource I've every got... I can't say that or something?
-
I know but I made it client-side... There's was no use making it server-sided.
