Jump to content

csiguusz

Members
  • Posts

    500
  • Joined

  • Last visited

Everything posted by csiguusz

  1. Maybe somewhere else is a problem in your script... And is everything in your meta.xml correct?
  2. when i type /peds it makes a ped who dances
  3. You can play a sound with the playSound function
  4. function makePed() local ped1 = createPed(299, -1629, -167.89999389648, 17.60000038147) setPedAnimation( ped1, "DANCING", "dnce_M_c",-1,true,false,false) end addCommandHandler ( "peds", makePed ) I tried it, it's working for me...
  5. try this: setPedAnimation( ped1, "DANCING", "dnce_M_c",-1,true,false,false)
  6. csiguusz

    Help

    Server-sided scripts are running on the server. Client-sided ones are downloaded when a player joins a server and they run on the player's computer. And there are only client or server sided functions.
  7. csiguusz

    Help

    setPedControlState is only client-side.
  8. csiguusz

    Loading

    I don't know if there is a script for this, but you can make your own with the dxdraw functions: dxDrawText dxDrawRectangle
  9. Not all vehicles. Maybe something with just this mod is wrong because your code seems to be correct and i hope everything is added correctly to the meta.xml too.
  10. Mine is easier, table.insert, will do what you want to do with "id = 0 and id = id+1". You can retrieve the elements so: plants[1] is the first added element plants[2] is the second and so on, or do a loop: --this will destroy every elements in the table if it exists, and remove it from the table for i, v in ipairs(plants) do if isElement(v) then destroyElement(v) end table.remove(plants,i) end
  11. Then dont use id as table index, use this: table.insert(plants,createObject(plantID,x,y,z))
  12. This is maybe because you just entered the command "plant" and you did not wrote an id (like /plant 29 ). function plants(thePlayer, cmd, id) if (cmd == "plant") then if tonumber(id) then local x,y,z = getElementPosition(thePlayer) plants[id] = createObject(plantID,x,y,z) end end if (cmd == "harvest") then --TODO end end
  13. ah... i really had to learn to read. I' dont have better idea: you can edit the script, where players can spawn vehicles, to make them with those ids damage proof. Or use an other event, like onVehicleStartEnter, with this event it would set the vehicle damage proof when a player starts to enter it.
  14. Something is wrong with the textures I think.
  15. What's you problem exactly? This will make every vehicle with id 411 or 495 damage proof when the resource starts...
  16. Then it is disabled by a script, find it and edit it
  17. You dont have to add /me command, it comes with the server.
  18. If it's a home server then the players have to download from you computer, so the download speed depends on the speed your internet connection. Check the size of your skins and car models, if they don't give the 176mb then, there are more files in other resources, wich are causing this much download.
  19. You can use dxDrawText to write anything anywhere on the screen.
  20. This doesn't make sense. And is the player element defined where you tested it? This funtion is client-side only, you can't use it server-side. say that to the wiki not to me , cause it's written that it's Client and Server function with a blue color Em... You are right, i was thinking of setPedControlState wich is really client-side only)
  21. Lol, toggleControl... How could I forget this, nice work anyway;)
  22. This doesn't make sense. And is the player element defined where you tested it? This funtion is client-side only, you can't use it server-side.
×
×
  • Create New...