Jump to content

Parachute


Drakath

Recommended Posts

WARNING: [gameplay]/parachute/parachute.lua:18: Bad usage @ 'triggerClientEvent' [ section in the meta.xml is incorrect or missing (expected at least server 1.3.0-9.04570 because a send list is being used)]

WARNING: [gameplay]/parachute/parachute.lua:32: Bad usage @ 'triggerClientEvent' [ section in the meta.xml is incorrect or missing (expected at least server 1.3.0-9.04570 because a send list is being used)]

Meta:

<meta> 
    <info author="Jax + Talidan" description="Parachutes script" version="1.0.1" /> 
     
    <min_mta_version client="1.3.0-9.04570" /> 
     
    <script src="utility.lua" type="client" /> 
    <script src="parachute.lua" /> 
    <script src="parachute_cl.lua" type="client" /> 
    <script src="skydiving_cl.lua" type="client" /> 
    <script src="openChute.lua" type="client" /> 
    <script src="client_anim.lua" type="client" /> 
    <file src="parachuteopen.mp3" /> 
     
    <export function="removeParachute" type="client" /> 
    <export function="stopSkyDiving" type="client" /> 
     
    <export function="isPlayerSkyDiving" type="client" /> 
    <export function="isPlayerParachuting" type="client" /> 
</meta> 

Link to comment

It's just a default resource, I didn't edit it.

local function onResourceStart ( resource ) 
    local players = getElementsByType ( "player" ) 
    for k, v in pairs ( players ) do 
        setElementData ( v, "parachuting", false ) 
    end 
end 
addEventHandler ( "onResourceStart", resourceRoot, onResourceStart ) 
  
function requestAddParachute () 
    local plrs = getElementsByType("player") 
    for key,player in ipairs(plrs) do 
        if player == client then 
            table.remove(plrs, key) 
            break 
        end 
    end 
    triggerClientEvent(plrs, "doAddParachuteToPlayer", client) 
end 
addEvent ( "requestAddParachute", true ) 
addEventHandler ( "requestAddParachute", resourceRoot, requestAddParachute ) 
  
function requestRemoveParachute () 
    takeWeapon ( client, 46 ) 
    local plrs = getElementsByType("player") 
    for key,player in ipairs(plrs) do 
        if player == client then 
            table.remove(plrs, key) 
            break 
        end 
    end 
    triggerClientEvent(plrs, "doRemoveParachuteFromPlayer", client) 
end 
addEvent ( "requestRemoveParachute", true ) 
addEventHandler ( "requestRemoveParachute", resourceRoot, requestRemoveParachute ) 

If this is a bug, I think developers should take a look at it.

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...