
delta1337
Members-
Posts
56 -
Joined
-
Last visited
Everything posted by delta1337
-
outputChatBox("Sorry, but you have to be in a vehicle to use this command!") Sorry, but you have to be in a vehicle to use this command!
-
Thank you, ill try it out. Ive tried it out, and after clicking num_8 nothing happend and and after clicking num_2 also nothing happend addCommandHandler("getAdjust",function() if isPedInVehicle(localPlayer) then local adjusted = getVehicleAdjustableProperty(getPedOccupiedVehicle(localPlayer)) if adjusted then outputChatBox(adjusted) else outputChatBox("Sorry, but your vehicle doesn't have any adjustable properties!") end else outputChatBox("Sorry, but you have to be in a vehicle to use this command!") end end) bindKey('num_8','down',function() if getPedOccupiedVehicle(localPlayer) and getElementModel(getPedOccupiedVehicle(localPlayer))==511 then local car = getPedOccupiedVehicle(localPlayer) setVehicleAdjustableProperty(car,2740) outputChatBox('work') end end) bindKey('num_2','down',function() if getPedOccupiedVehicle(localPlayer) and getElementModel(getPedOccupiedVehicle(localPlayer))==511 then local car = getPedOccupiedVehicle(localPlayer) setVehicleAdjustableProperty(car,1212) outputChatBox('work') end end) addEventHandler('onClientVehicleEnter',root,function() if getElementModel(localPlayer)==511 then setVehicleAdjustableProperty(source,1212) end end)
-
Hello guys, i want to make a script like in this video, but i dont know how can i switch the fly mode like in hydra, does anybody knows what codes i need to use?
-
Thank you for the reply. Do you have any idea which code i need to use to make HSRPG hit the target? Cause ive searched it and i could not find it.
-
I think its about over Explosion damage not the RPG, cause RPG rocket is a object not a bullet, and after hiting a object its making a explosion so you have probably need to change explosion damage.
-
Hello, so last time ive made a script for multiple flares for every Helicopter and Plane, but the problem is they dont work, if your firing out flares they are just nothing doing and the HSrocket will still hit me without a single problem, can somebody help me with making them work? - Server side local timer= { } local timer_object= {} local move_object= {} addEventHandler('onPlayerJoin',root,function() bindKey(source,'b','down',function(gracz) if getPedOccupiedVehicle(gracz) and (getVehicleType(getPedOccupiedVehicle(gracz))=='Plane' or getVehicleType(getPedOccupiedVehicle(gracz))=='Helicopter') then if isTimer(timer[gracz]) then return end timer[gracz] = setTimer(function() end,3000,1) local x,y,z = getElementPosition(gracz); local xr,yr,zr = getElementRotation(gracz); local offsetRot = math.rad(zr+90); local vx = x+1*math.cos(offsetRot); local vy = y+1*math.sin(offsetRot); local vrot = zr+90; triggerClientEvent(root,'Zrzuc_RoadFire',root,vx, vy,x,y,z) end end) end) for _,v in pairs(getElementsByType('player')) do bindKey(v,'b','down',function(gracz) if getPedOccupiedVehicle(gracz) and (getVehicleType(getPedOccupiedVehicle(gracz))=='Plane' or getVehicleType(getPedOccupiedVehicle(gracz))=='Helicopter') then if isTimer(timer[gracz]) then return end timer[gracz] = setTimer(function() end,3000,1) local x,y,z = getElementPosition(gracz); local xr,yr,zr = getElementRotation(gracz); local offsetRot = math.rad(zr+90); local vx = x+1*math.cos(offsetRot); local vy = y+1*math.sin(offsetRot); local vrot = zr+90; triggerClientEvent(root,'Zrzuc_RoadFire',root,vx, vy,x,y,z) end end) end addEvent('Zrzuc_Delte',true) addEventHandler('Zrzuc_Delte',root,function(rx,ry,x,y,z,rz) for i=1,3 do local object = createObject(354,rx,ry-i,rz-3) setElementAlpha(object,0) move_object[object] = setTimer(function(object,rx,ry,x,y,z,rz,i) local los = math.random(0,1) if los==1 then moveObject(object,9000,rx+math.random(10,40),ry-i-math.random(1,6),z) else moveObject(object,9000,rx-math.random(10,40),ry-i-math.random(1,6),z) end end,50,1,object,rx,ry,x,y,z,rz,i) timer_object[object] = setTimer(function(object) destroyElement(object) end,2000*2,1,object) end end) Client side - -- 354 addEvent('Zrzuc_RoadFire',true) addEventHandler('Zrzuc_RoadFire',root,function(rx,ry,x,y,z) local ground = getGroundPosition(x,y,z) triggerServerEvent('Zrzuc_Delte',root,rx,ry,x,y,ground,z) end)
-
Thanks for reply, im gonna read out, and try to do that.
-
Sure, here you go.
-
Hello guys! Since the new code for replacing animation came out, i wanted to add it on my server. I added some new animation for ped.ifp, and rifle.ifp, but there is a bug, when your aiming and reloading animation looks like this (chekout screens), but when your crouching and aiming, animation looks fine, but when you stand up, it is still bugged, i tried it even on a clear local server, other animations look fine, only i got problem with this one, i even download many other rifle.ifps, but it was still bugged. Do you guys know what causes this bug? And how to fix it? (here are the screens) https://imgur.com/a/OqUOfiK
-
But i mean the heatseek, not projectile
-
Hello, i want to add the heatseek missiles to hunter, but i don't know the codes for it, someone would like to help me please?
-
function getPositionFromElementOffset(element,offX,offY,offZ) local m = getElementMatrix ( element ) -- Get the matrix local x = offX * m[1][1] + offY * m[2][1] + offZ * m[3][1] + m[4][1] -- Apply transform local y = offX * m[1][2] + offY * m[2][2] + offZ * m[3][2] + m[4][2] local z = offX * m[1][3] + offY * m[2][3] + offZ * m[3][3] + m[4][3] return x, y, z -- Return the transformed point end function getPointFromDistanceRotation(x, y, dist, angle) local a = math.rad(90 - angle); local dx = math.cos(a) * dist; local dy = math.sin(a) * dist; return x+dx, y+dy; end function getPointFromDistanceRotationa(x, dist, angle) local a = math.rad(90 - angle); local dx = math.cos(a) * dist; return x+dx; end local time=getTickCount() addEventHandler('onClientRender',root,function() local veh=getPedOccupiedVehicle(localPlayer) if veh and getElementModel(veh)==519 and getPedOccupiedVehicleSeat(localPlayer)==0 then local sx,sy,sz=getPositionFromElementOffset(veh,0,3,-1) local vxr,_,vr=getElementRotation(veh) local vx,vy,vz=getElementPosition(veh) local vz= getPointFromDistanceRotationa(vz,120,vxr) local vx,vy= getPointFromDistanceRotation(vx,vy, 120, -vr) dxDrawLine3D(sx,sy,sz,vx,vy,vz,tocolor(255,0,0,255),3) if getKeyState('lctrl') then if getTickCount()-time>=150 then local h,hx,hy,hz,he= processLineOfSight (sx,sy,sz,vx,vy,vz,true,true,true,true,true,false,false,false,getPedOccupiedVehicle(localPlayer)) triggerServerEvent('fire',localPlayer,sx,sy,sz,vx,vy,vz,he) time=getTickCount() end end end end) addEvent('fire',true) addEventHandler('fire',root,function(x,y,z,x1,y1,z1) local s=playSound3D('gun.mp3',x,y,z) setSoundMaxDistance( s,150 ) fxAddGunshot ( x1,y1,z1,0,0,0) end)
-
--fading math. if fading == 0 then fading2 = "up" elseif fading == 255 then fading2 = "down" end if (getCameraGoggleEffect() == "nightvision") or (getCameraGoggleEffect() == "thermalvision") then dxDrawImage( 0, 0, screenWidth, screenHeight, "images/night_vision.png") end <meta> <file src="images/night_vision.png"/> <script src="client.lua" type="client"/> </meta> ) This is NightVision PNG https://imgur.com/v7BSxnX
-
hello i have a problem, its about a script code which i was sent, it is supposed to show an image on the screen when you use nightvision and thermalvision, but it doesn't work, can you help me? would be cool if someone would sent the full code, but fixed
-
Hello, I'll made a script which shoots with a bullets, but it dont want work, can somebody help me?
-
Hello, so i want to change the Heatseek lockon icon, but i dont know the function to change it. screen: https://imgur.com/a/X3rjV
-
But after chaning those Functions/Commands, Admin Panel's function buttons dont work, and Moderator's permissions didnt changed
-
Thanks Khadeer ill will try it I think i found the problem. When ill seted those commands to false, i cant register and i had Unknown Error, but when i seted it back to true, it worked
-
Thanks for answer, yes im carefull i did it even with Script and still doesnt work Do you have maybe discord? steam or something like that? cause i didnt used skype for a long time
-
Hello, last time ill tried to change ACL permissions, but every time when im doing this there is a problem, every time after this i cant Register and permissions for all ranks are bugged even for a admin. Can someon help me to fix that problem?
-
Hello, last time ill tried to change ACL permissions, but every time when im doing this there is a problem, every time after this i cant Register and permissions for all ranks are bugged even for a admin. Can someon help me to fix that problem?
-
Same here
-
Nvm, It works my bad ^^ thanks for help!
-
Thanks for answer, the backpack changed the teksture but the top of it still doesnt changed