Jump to content

3ehud

Members
  • Posts

    7
  • Joined

  • Last visited

Details

  • Gang
    Los Santos Racing
  • Location
    Los Santos
  • Occupation
    A good racer.
  • Interests
    Racing.

3ehud's Achievements

Newbie

Newbie (4/54)

1

Reputation

  1. End of the topic, people heleped me on another forum.
  2. I edited the code a bit. function command(player,cmd,amount) end local vehicle = getPedOccupiedVehicle(player) local fuel = getElementData(vehicle,"fuel") local account = getPlayerAccount(player) local name = getAccountName(account) if isObjectInACLGroup("user."..name,aclGetGroup("Właściciel")) then end if vehicle and tonumber(amount) and (tonumber(fuel) + tonumber(amount)) <= 100 then setElementData(vehicle,"fuel",tonumber(amount) + tonumber(fuel)) outputChatBox("Pojazd został zatrzymany.",player) end addCommandHandler("tech",command) And here are the errors/warnings. https://drive.google.com/open?id=0B9I7LHGBgukAVmxkTmVyUm9OT3c Btw would you mind helping me with an EMP (Electro-magnetic Pulse) system for Police that could turn off the engine for about 3 minutes?
  3. So i made a script that was meant to set my wanted amount of fuel (0 to 100). It doesnt work and i need help from you guys. Here's the script: function command(player,cmd,amount) local vehicle = getPedOccupiedVehicle(player) local fuel = getElementData(vehicle,"fuel") local account = getPlayerAccount(player) local name = getAccountName(account) if isObjectInACLGroup("user."..name,aclGetGroup("Właściciel")) then if vehicle and tonumber(amount) and (tonumber(fuel) + tonumber(amount)) <= 100 then setElementData(vehicle,"fuel",tonumber(amount) + tonumber(fuel)) outputChatBox("Pojazd został zatrzymany.",player) end end addCommandHandler("tech",command)
  4. <meta> <script src="script.lua" type="server" /> </meta>
  5. yup acuatlly it now doesnt show the message but still aint working
  6. Everything cool but it says im not in vehicle. And i need a script that could change the velocity.
  7. I need help with a script, that will be allowed to use only by "Policja" ACL group, and it sets player's vehicle maxVelocity to 0.1, but i need the script to change it back to normal velocity when i want. The command needs to look like this: /commandName thePlayer maxVelocity. So i need some help because i don't even know Lua, aaand i used wiki and looked in some scripts too. Maybe you guys, the Lua masters out there will help me out? Huge thanks. Here's what I've done. function emp ( thePlayer, theVehicle ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) then setVehicleHandling(v, "maxVelocity", 0.1) end addCommandHandler ( string turnoff, function emp, [bool restricted = false, bool caseSensitive = true] )
×
×
  • Create New...