Server Exports

Available server exports for this resource

StartArmaFx: Id

Allows you to call a specific Fx

Example

AddEventHandler('onResourceStart', function(resourceName)
    StartArmaFx(1) -- Calls meteor, server will handle the falling meteors.
end)

EndArmaFx:

Ends current Fx server-wide event

RegisterCommand('stoparmafx', function(source)
    EndArmaFx()
end)

Nuke: coords, customSpeed

RegisterNetEvent('example:server:CallNuke', function()
    exports['bv-ArmaggedonFx']:Nuke(someRandomCoords, 100.0)
end)

Meteor: coords, directional <bool>, customSpeed, specifiedModel

RegisterNetEvent('example:server:CallMeteor', function()
    exports['bv-ArmaggedonFx']:Meteor(someRandomCoords, true, 100.0, `prop_asteroid_01`)
end)

Missile: coords, directional <bool>, customSpeed

RegisterNetEvent('example:server:CallMeteor', function()
    exports['bv-ArmaggedonFx']:Missile(someRandomCoords, true, 100.0)
end)

Last updated