Jump to content

HELP


Joxte.~

Recommended Posts

I don't know anything of lua D:

I have a problem with the script on my map, i am just building the map, and i can't continue with this problem ):

this is the error:

5yc1mw.jpg

My meta:

<meta> 
    <info gamemodes="race" type="map" name="[DM] Joxte Vol.2 " author="JoxTe" version="1.0.0" description="cows around the world" /> 
    <map src="DM Joxte Vol2.map" dimension="0" /> 
    <settings> 
        <setting name="#skins" value='[ "cj" ]' /> 
        <setting name="#maxplayers" value="[ 128 ]" /> 
        <setting name="#gamespeed" value="[ 1 ]" /> 
        <setting name="#ghostmode" value='[ "false" ]' /> 
        <setting name="#time" value="22:30" /> 
        <setting name="#vehicleweapons" value='[ "false" ]' /> 
        <setting name="#minplayers" value="[ 0 ]" /> 
        <setting name="#weather" value="[ 1 ]" /> 
        <setting name="#gravity" value="[ 0.008000 ]" /> 
        <setting name="#waveheight" value="[ 0 ]" /> 
        <setting name="#respawntime" value="[ 0 ]" /> 
        <setting name="#locked_time" value="[ false ]" /> 
        <setting name="#duration" value="[ 1800 ]" /> 
        <setting name="#respawn" value='[ "timelimit" ]' /> 
    </settings> 
    <script src="client.lua" type="client" /> 
</meta> 
  

And my script:

gravitymarker01 = createMarker(7934.55859375, -1394.7816162109, 1552.03125, "corona", 3, 0, 0, 0, 0) 
  
addEventHandler ( "onClientMarkerHit", getRootElement(), Gravity ) 
end 
  
function Gravity ( hitPlayer, matchingDimension ) 
vehicle = getPedOccupiedVehicle ( hitPlayer ) 
if hitPlayer ~= Me then return end 
    if source == gravitymarker01 then 
        speedx, speedy, speedz = getElementVelocity ( vehicle )  
        setElementVelocity(vehicle, 0.35, speedy-0.1, speedz+0.
    end 
end 

Please help :D

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...