Jump to content

spawn blip


CapY

Recommended Posts

Posted

Two errors here ...

addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), 
    function() 
        local blip = guiCreateButton ( 0, 0, 25, 20, "Spawn", false ) 
        guiSetFont(blip,"default-small") 
        exports.customblips:guiConvertToCustomBlip ( blip, -700, 960, 10 ) 
    end 
) 

Posted

ERROR:exports:Call to non existing resource ( customblips ) [string"?"]

ERROR:spawnblip\client.lua:5: attempt to index field 'customblips' ( a nil value )

Posted (edited)

you need run customblips resource if resource for exports not run you cant exports any functions .

Edited by Guest
Posted

Either the resource's name is wrong, or the resource is not running.

The resource must be running first when the function is executed.

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