CapY Posted August 14, 2011 Posted August 14, 2011 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 )
JR10 Posted August 14, 2011 Posted August 14, 2011 Post the errors. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
CapY Posted August 14, 2011 Author Posted August 14, 2011 ERROR:exports:Call to non existing resource ( customblips ) [string"?"] ERROR:spawnblip\client.lua:5: attempt to index field 'customblips' ( a nil value )
JR10 Posted August 14, 2011 Posted August 14, 2011 Lol, the resource is not running. Start customblips then do it again. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
Kenix Posted August 14, 2011 Posted August 14, 2011 (edited) you need run customblips resource if resource for exports not run you cant exports any functions . Edited August 14, 2011 by Guest http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
CapY Posted August 14, 2011 Author Posted August 14, 2011 Lol, the resource is not running.Start customblips then do it again. Resource is running .
JR10 Posted August 14, 2011 Posted August 14, 2011 Either the resource's name is wrong, or the resource is not running. The resource must be running first when the function is executed. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
Kenix Posted August 14, 2011 Posted August 14, 2011 Show this function guiConvertToCustomBlip http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
Kenix Posted August 16, 2011 Posted August 16, 2011 Show source code this function .p.s i use a mobile phone and i cant look resource and this function. http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
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