-
Posts
6,097 -
Joined
-
Last visited
-
Days Won
218
Everything posted by IIYAMA
-
BiiLLY +1 Well onVehicleStartEnter can be canceled, but you can also remove the player from the vehicle by using removePedFromVehicle after onVehicleEnter. It is just what you want.
-
I only know the math for flat rotations. (like on the movie) Must it really be this?
-
It can, by changing the coordinates of the start and end. You have the middle point, you create offset from there. And you let the offset locations move around the middle point. I hope you have learned to work with tables, because these are the one you need to manage for more then one icon. At the moment your code is creating for every click a new event, that will start lagging and next to that it isn't manage able cause you can't stop it without turning off the script. @ 6ArHxiMr'3a[Z]eF
-
This maybe? Animation probably created by increasing the material line and changing the offZet. local PosX= ... local PosY= ... local PosZ= ... local offZetX1 = PosX+10 local offZetY1 = PosY+10 local offZetX2 = PosX-10 local offZetY2 = PosY-10 dxDrawMaterialLine3D ( offZetX1, offZetY1, PosZ, offZetX2,offZetY2, PosZ,material, 10)
-
Vertalen zou het alleen maar lastiger maken. Je kan ook hier specifieke dingen vragen.
-
Please give the one script that you used to get a hockey mask! We just did, I would almost say unfortunately.
-
Then now you just threw castillo's code on a global forum. Wasted of his time don't you think....
-
hmms looks like incorrect information on wiki mta.
-
Maybe take a close watch at the sample from wiki mta: https://wiki.multitheftauto.com/wiki/DxDrawText
-
I even get the feeling this isn't your code since you didn't try to debug it. You seriously wasted my time, I will never try to help you again.
-
I didn't had time to fix. Never used pedClothes before. local gasMaskActivation = function (player) local texture,model = getPedClothes ( player, 15 ) if not (texture == "hockey" and model == "hockeymask") then addPedClothes ( player, "hockey", "hockeymask", 15 ) else removePedClothes ( player, 15 ) end end addEventHandler ("onPlayerLogin",root, function() bindKey (source,"h","up",gasMaskActivation) end) addEventHandler ("onPlayerLogout",root, function() if isKeyBound ( source,"h","up",gasMaskActivation ) then unbindKey (source,"h","up",gasMaskActivation) end end)
-
It directx functions require onClientRender.
-
Use a timer: https://wiki.multitheftauto.com/wiki/SetTimer drawtext only works for clientside: https://wiki.multitheftauto.com/wiki/TriggerClientEvent
-
addEventHandler("onMarkerHit",createMarker( 1791.537, 656.511, 17.626, 'cylinder', 2.0, 255, 0, 0, 150) , function ( hitElement, matchingDimension ) if getElementType( hitElement ) == "vehicle" then setElementFrozen ( hitElement, not isElementFrozen ( hitElement ) ) end end)
-
Why not? server: triggerClientEvent ( player, "cashUpdate", player, cash ) client: addEvent("cashUpdate",true) addEventHandler("cashUpdate",root, function (cash) end)
-
no. use: https://wiki.multitheftauto.com/wiki/OnVehicleEnter setVehicleLocked ( 596, true ) a number isn't a vehicle.
-
local myMarker = createMarker( 1791.537, 656.511, 17.626, 'cylinder', 2.0, 255, 0, 0, 150) addEventHandler("onPlayerMarkerHit",root, function ( hitElement, matchingDimension ) -- define MarkerHit function for the handler if isPedInVehicle( hitElement ) then local playerVehicle = getPlayerOccupiedVehicle ( hitElement ) local currentFreezeStatus = isElementFrozen ( playerVehicle ) local newFreezeStatus = not currentFreezeStatus setElementFrozen ( playerVehicle, newFreezeStatus ) end end) Lol I didn't seen you also forgot the event.
-
Wrong: You are using 3 times the event onPlayerLogin. The player of a onPlayerLogin is the source. You are using getLocalPlayer, that is for clientside. But this is serverside. Use removePedClothes instead of removePlayerClothes getPedSkin ( player) require a player or ped. etc.
-
Where is your event? Your function? Btw: carid = getElementModel(vehicle) -- not a car id. -- and if (skinid==280 or skinid==281 or skinid==282 and carid==596 or carid==598 or carid==597) and isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "police" ) ) then
-
That is just another way of doing, it isn't adding more objects. Well let me call it: faking the players
-
local myMarker = createMarker( 1791.537, 656.511, 17.626, 'cylinder', 2.0, 255, 0, 0, 150) function MarkerHit( hitElement, matchingDimension ) -- define MarkerHit function for the handler local elementType = getElementType( hitElement ) -- get the hit element's type if elementType == "player" and isPedInVehicle( hitElement ) then local playerVehicle = getPlayerOccupiedVehicle ( hitElement ) local currentFreezeStatus = isElementFrozen ( playerVehicle ) local newFreezeStatus = not currentFreezeStatus setElementFrozen ( playerVehicle, newFreezeStatus ) end end
-
You can't add new objects. You have to stick with replacing them, sorry.
