Jump to content

Jaysds1

Members
  • Posts

    4,961
  • Joined

  • Last visited

Everything posted by Jaysds1

  1. Jaysds1

    Hydra .

    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)
  2. ohhhh, ok here: function(player) if (getPlayerAmmoInClip(player) == 0) then giveWeapon(player,getPedWeapon(player,current)) end end
  3. it's just like the isCursorShowing(showCursor()). But I'll change it: addEventHandler("onTrailerAttach",getRootElement(), function() if ( not wasEventCancelled() ) then cancelEvent() end)
  4. Jaysds1

    idle cars?

    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)
  5. It's suppose to work Server-side... Try this: addEventHandler("onTrailerAttach",getRootElement(), function() wasEventCancelled(canelEvent()) end)
  6. Jaysds1

    Cars

    ok, I know wiki isn't wrong.
  7. Jaysds1

    Doors

    Put this script in Client-side or Server-Side. It'll work both sides. EDIT: I never knew JR10.
  8. 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
  9. Jaysds1

    Cars

    Here: function respawnExplodedVehicle() setTimer(respawnVehicle, 5000, 1, source) end addEventHandler("onVehicleExplode", getRootElement(), respawnExplodedVehicle) I got it from Wiki
  10. I suggest to show the scripts... And moderator, move this to scripting forum.
  11. 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...
  12. ok, that's better... function(player) if (getPlayerAmmoInClip(player) == 0) then takeWeapon(player,getPedWeapon(player,current)) end end
  13. there's no such thing as "getWeaponAmmo". there's only giveWeaponAmmo or setWeaponAmmo.
  14. Jaysds1

    Camera Target

    ok ok ok, u got me
  15. Jaysds1

    Camera Target

    I meant setCameraTarget serverside... the player and the element which is the object...
  16. 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
  17. Jaysds1

    Camera Target

    ya, it's possible to fade a camera at a object... but first use setCameraTarget...
  18. 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)...
  19. ya, I got Fraps off of Kickass Torrents
  20. 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?
  21. Thanks for editing it for me... i really don't know what I'm doing rite now...
  22. I never knew... My friend showed me it this week...
  23. 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?
  24. I know but I made it client-side... There's was no use making it server-sided.
×
×
  • Create New...