csiguusz
Members-
Posts
500 -
Joined
-
Last visited
Everything posted by csiguusz
-
Maybe somewhere else is a problem in your script... And is everything in your meta.xml correct?
-
when i type /peds it makes a ped who dances
-
You can play a sound with the playSound function
-
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...
-
try this: setPedAnimation( ped1, "DANCING", "dnce_M_c",-1,true,false,false)
-
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.
-
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
-
Then dont use id as table index, use this: table.insert(plants,createObject(plantID,x,y,z))
-
Yes, this is also true.
-
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
-
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.
-
Something is wrong with the textures I think.
-
What's you problem exactly? This will make every vehicle with id 411 or 495 damage proof when the resource starts...
-
Then it is disabled by a script, find it and edit it
-
You dont have to add /me command, it comes with the server.
-
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.
-
You can use dxDrawText to write anything anywhere on the screen.
-
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)
-
Lol, toggleControl... How could I forget this, nice work anyway;)
-
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.
-
Returns true, but does nothing.
