-
Posts
6,089 -
Joined
-
Last visited
-
Days Won
216
Everything posted by IIYAMA
-
enteringPlayer doesn't exist, it will probably send to all players/error. addEventHandler ( "onVehicleStartEnter",root, function (player)-- enterVehicle if ( source == hunter ) and isVehicleLocked(hunter) then outputChatBox ("* Vehicle locked for a few minutes *",player, 255, 0, 0) end end)
-
nothing projectile seriously? Learn lua pls and don't steal scripts.
-
idd dat is waarom je me negeert.
-
of course, that is why Castillo locked one of your previous topics. shootTimer = setTimer(shoot,2500,0,hitElement) Where is the "shoot" function? I only see a "shot" function.
-
Is that everything you can say? Well why don't you create it your self? Instead of post other people their code and let us fix it. You did not even mention the owner of this script, in my opinion this one can be locked.
-
I did not changed anything, it was more a question. ' ? ' -_-" You are bind/unbind a key every single frame.
-
Kleine vraag over "vehicle_radio" script
IIYAMA replied to wesleywillems17's topic in Dutch / Nederlands
lees de syntax ff door, element playSound3D ( string soundPath, float x, float y, float z, [ bool looped = false ] ) local sound = playSound3D(newurl, x, y, z) -- 1 x local sound = playSound3D(newurl, x, y, z,true)-- herhalend tot het geluid word verwijderd. -
function move ( ) theVehicle = getPedOccupiedVehicle ( localPlayer ) if (theVehicle) then if (getElementModel(theVehicle) == 600) and (minigun1) then bindKey ( "vehicle_fire", "down", shot ) local xt, yt, zt, rxt, ryt, rzt = getCameraMatrix(localPlayer) attachElements (minigun1, theVehicle, 0, -1.7, -0.4, 0, 0, zt ) else unbindKey ( "vehicle_fire", "down", shot ) end end end addEventHandler ( "onClientRender", root, move) how many times do you want to bind/unbind a key?
-
addEventHandler("onClientRender",root, function () dxDrawRectangle (100, 100, 400, 100) end)
-
Destroys the zombie, not hide it. It will be hidden when you set it to another dimension/interior/location or something like that. addEventHandler("onElementDestroy", root, function () if getElementType(source)=="ped" and isElement(zombieBlips[source]) then destroyElement(zombieBlips[source]) end end)
-
or you can enter one of the interior with the editor and use world tool to get it. There are a lot you can use.
-
"onClientPlayerWasted" second one I don't understand.
-
Short: So I am trying to get the camera position, but it is nil/false because it hasn't been updated?
-
Sometimes it returns false, don't know why. if scx then --<
-
You can also create offset. --syntax attachElements ( element theElement, element theAttachToElement, [ float xPosOffset, float yPosOffset, float zPosOffset, float xRotOffset, float yRotOffset, float zRotOffset ] ) -- try attachElements(speakerObject, vehicle,2,0,0) and no, moveObject doesn't work when the object is attached.
-
Make sure: - server script did started. - Client and server are in the same folder. - server script has been written in the meta.xml - server script is server side... more mistakes that can lead to this result?
-
try: local x, y, z = getElementPosition(getPedOccupiedVehicle (thePlayer) or thePlayer)
-
addEventHandler ( "onPlayerSpawn", root, function ( ) local account = getPlayerAccount ( source ) if ( account and not isGuestAccount ( account ) ) then setPlayerWantedLevel ( source, getAccountData ( account, "save-level" ) or 0 ) local team = getTeamFromName ( getAccountData ( account, "save-team" ) ) if ( team ) then setPlayerTeam ( source, team ) else outputChatBox ( "Get a Job NOOB", source ) end for slot = 1, 12 do local wep = getAccountData ( account, "save-wep".. slot ) local ammo = getAccountData ( account, "save-ammo".. slot ) giveWeapon ( source, wep, ammo ) end end end ) setPlayerWantedLevel ( source, getAccountData ( account, "save-level" ) or 0 )*
-
Because you don't load all the account data? setPlayerWantedLevel ( source, getAccountData ( account, "save-level" ) or 0 ) What stats???? nobody has written anything in the script about stats.
-
https://wiki.multitheftauto.com/wiki/ToggleControl https://wiki.multitheftauto.com/wiki/On ... aponSwitch https://wiki.multitheftauto.com/wiki/SetTimer
-
np. nope, I don't have time for paid scripting.
-
aha lazy guy. Next time you make your own. local maxLevel = 20 -- max level local untilW = 60 -- sec local raising,level = (maxLevel/untilW)/10,0 untilW = nil local runningTimer function editSomeWater() level = level + raising -- level raising setWaterLevel ( level ) -- set the level if level >= maxLevel then -- compare values of level and max level setWaterLevel ( maxLevel ) -- set it back to max level for perfection if isTimer(runningTimer) then -- check if the timer exist killTimer(runningTimer) -- stop the timer end runningTimer,level,maxLevel = nil,nil,nil -- delete data (ram) end end setTimer (function () -- set a timer for 15000 millisec (15 sec), runs one time "1" runningTimer = setTimer ( editSomeWater, 100, 0 ) -- set an invinity timer to set the water level, (0 = invinity) (only stops when you stop him with killTimer) end,15000,1)
-
Must it stay at 20 m? local level = 0 local runningTimer function editSomeWater() level = level + 0.033333 setWaterLevel ( level ) if level >= 20 then setWaterLevel ( 20 ) if isTimer(runningTimer) then killTimer(runningTimer) end runningTimer = nil end end setTimer (function () runningTimer = setTimer ( editSomeWater, 100, 0 ) end,15000,1)
