So i decided to make a scripted jump. This is how script looks like. (btw i just have to put corona marker at the chords i put in script?). Well..it doesn't work . Some help please. Ty.
Me = getLocalPlayer()
Root = getRootElement()
local screenWidth, screenHeight = guiGetScreenSize()
function Main ()
marker1 = createMarker(x(3236.3000488281), y(-266.20001220703), z(16), "corona", pickupsize(80), 0, 0, 0, 0)
marker2 = createMarker(x(X), y(X), z(X), "corona", pickupsize(X), 0, 0, 0, 0)
addEventHandler ( "onClientMarkerHit", getRootElement(), MainFunction )
end
addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), Main )
function MainFunction ( hitPlayer, matchingDimension )
vehicle = getPedOccupiedVehicle ( hitPlayer )
if hitPlayer ~= Me then return end
if source == marker1 then
setElementVelocity(vehicle, speedX(0.0), speedY(0.2), speedZ(2))
end
if source == marker2 then
setElementVelocity(vehicle, speedX(X), speedY(X), speedZ(X))
end
end
Question
nik3231
So i decided to make a scripted jump. This is how script looks like. (btw i just have to put corona marker at the chords i put in script?). Well..it doesn't work
. Some help please. Ty.
Link to comment
15 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now